package com.lpit.controller;

import com.lpit.pojo.Certification;
import com.lpit.pojo.Feedback;
import com.lpit.result.ResponseResult;
import com.lpit.service.UserCenterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 用户中心
 */
@RestController
public class UserCenterController {

    @Autowired
    private UserCenterService userCenterService;
    /**
     * 用户认证
     * @param certification
     * @return
     */
    @PostMapping("/user/authentication.do")
    public ResponseResult<Integer> authentication(Certification certification){
        return userCenterService.userAuthentication(certification);
    }

    /**
     * 用户反馈
     */
    @PostMapping("/user/feedback.do")
    public ResponseResult<Integer> feedback(Feedback feedback){
        return userCenterService.userFeedback(feedback);
    }
}
